package xcache

import (
	"context"
	"time"
)

type Cache interface {
	Set(ctx context.Context, key string, val interface{}, exp time.Duration) (s string, err error)
	Get(ctx context.Context, key string) (s interface{}, err error)
	Del(ctx context.Context, key string) (n int64, err error)
	Close(ctx context.Context) (err error)
}
